package edu.fim.core.service;

import java.sql.SQLException;

import edu.fim.core.exception.CaloriesThresholdExceededException;
import edu.fim.core.util.BmiCategories;
import edu.fim.presentation.model.bean.Consumer;
import edu.fim.presentation.model.bean.Food;


public interface ConsumerService extends CRUDService<Consumer> {

	Consumer findByUserAndPassword(String user, String password) throws SQLException;

	void setCaloriesThreshold(Consumer consumer, Double newThreshold) throws SQLException;

	void increaseCalories(Consumer consumer, Food food) throws CaloriesThresholdExceededException, SQLException;

	BmiCategories determineWeightSituation(Consumer consumer);
}